package com.novax.ex.activity.provider.api;

import com.novax.ex.activity.provider.api.model.BeebMaxMinIdsResponse;
import com.novax.ex.activity.provider.api.model.BeebUserResponse;
import com.novax.ex.activity.provider.api.model.UserDetailResponse;
import com.novax.ex.activity.provider.api.model.UserResponse;
import com.novax.ex.activity.provider.common.ServerName;
import com.novax.ex.common.results.ReturnResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Description 获取用户信息
 * @Author zhaolei
 * @Date 2/24/23 11:57 AM
 * @Version 1.0
 */
@FeignClient(url = "${remote.user-service.endpoint}", name = "UserApi", contextId = "UserApi")
public interface UserApi {
    @GetMapping(value = "/user")
    ReturnResult<UserResponse> info(@RequestParam("userId") Long userId);
    @GetMapping("/user/detail")
    ReturnResult<UserDetailResponse> detail(@RequestParam("userId") Long userId);
    //@ApiOperation(value = "beeb项目专用获取用户id范围")
    @GetMapping(value = "/user/beeb/getMinMaxIds")
    ReturnResult<BeebMaxMinIdsResponse> getBeebMinMaxIds(@RequestParam("startTime") String startTime);

    //@ApiOperation(value = "beeb项目专用获取指定范围")
    @GetMapping(value = "/user/beeb/getData")
    ReturnResult<List<BeebUserResponse>> getBeebData(@RequestParam("idStart") Long idStart, @RequestParam("pageSize") Long pageSize);

}
